The average age of our group of n people was 37 yrs at the end of the previous month.
This month 3 new members enrolled (aged 33, 38,
and 40 yrs) and one member (aged m yrs) left.
Now the average age of our group became lower by 18 months.
Given that both m and n are square numbers, find their values.