entry or purchase
goods a/c 100/-
To x 100/-
entry for sales
Y a/c 250/-
To goods 250/-
entry for payment
By x 100/-
To y a/c 250/-
By income received 150/-
( x receives 100/- out of 250/- paid and reamaing received by u =150/-
gst amount not mention in question )