P5/P6 Math: Before and After Fractional Change with Starting Difference (Advanced)

The question below require students to be able to split up 2 different quantities with the starting difference given.

Each unknown quantity is needed to split up to its corresponding fractions.
The difference between the 2 quantities at the end is given.

A similar variation of this question can also be found "here".

Such questions will appear in P5 SA2 and P6 Paper 2.
Calculator usage is allowed.

Harry has 45 more pencils than Matthew at first.
After Harry sold 1/3 of his pencils and Matthew gave 1/2 of his pencils away,
Harry has 80 more pencils than Matthew at the end.

How many pencils did both have altogether at first?


If the above question is easy, try to do the more challenging question below.

The question below will randomize with different numbers every hour. 
Copy below question down before making attempt.


Click if above box appears blank