changing averages

Find the value of $m$ from these statements about a group of numbers
Exploring and noticing Working systematically Conjecturing and generalising Visualising and representing Reasoning, convincing and proving
Being curious Being resourceful Being resilient Being collaborative

Problem



A list of integers has a mode of $32$, mean $22$ and median $m$. $m$ is one of the numbers on the list.

The smallest number on the list is $10$. 

If $m$ were replaced with $m + 10$, the mean would be $24$.

If $m$ were instead replaced with $m-8$, the median would be $m - 4$.

What is $m$?

This problem is adapted from the World Mathematics Championships