Sam gives 5 of his 6 yellow balloons to Fred, and Mary has 7 yellow balloons . The balloons cost 9 dollars . How many yellow balloons do Sam and Mary have in total?