Sam and Jack received a cash voucher and they divided the amount equally between them.

Sam spent 35 of his amount while Jack spent 78 of his amount.
The total amount remaining with them is $1,239.