SOLUTION
From the given question
A family ordered 1 banana split, paying a total of $6 for their order
This implies that the cost of a banana split is $6
The next customer ordered 3 banana splits and 1 hot fudge sundae and paid $22
Since the cost of a banana split is $6 then the cost of 3 banana splits is
Since the total amount paid is $22
Then the cost of 1 hot fudge sundae is
Therefore the cost of 1 banana split is $6
and the cost of 1 hot fudge is $4