(B)
In cases where—
(i)
a child placed in a foster family home or child-care institution is the parent of a son or daughter who is in the same home or institution, and
(ii)
payments described in subparagraph (A) are being made under this part with respect to such child,
the foster care maintenance payments made with respect to such child as otherwise determined under subparagraph (A) shall also include such amounts as may be necessary to cover the cost of the items described in that subparagraph with respect to such son or daughter.