Weighted EF1 and PO Allocations with Few Types of Agents or Chores | Synapse