Finding the frequencies with missing values.

Mar 2017
In short, the problem is as follows: We asked n=40 households about the sizes of their houses. All the answers are measured in m² and fall into 5 classes. From all the received data we know the mean is 95.625m² and the median is 85.385m²

Question 1:
Column (hi) represents the absolute frequency values.There are two missing values (where unlesbar is written) at i3 and i4.
How do i calculate these values using the given info?

Question 2: What is the upper limit for i5? (I'm assuming it is 150)
Stat question.jpgStat question.jpg