Problema Solution

In a mixture of wine and cider, 1/2 of the whole plus 25 gallons was wine, and 1/3 of the whole minus 5 gallons was cider. How many gallons of each were there?

Answer provided by our tutors

Please write the problem solution in the solution text box; do not attach files.

Also, do not post short title without the actual solution (to be appended later). Post the answer right away. I need the answers with all the steps (including equations) shown. Do not include the Problem text before your answer unless you are quoting it in the answer you provide. Thanks!