A student has gotten the following grades on his tests. What is the minimum grade he must get on the last test in order to have an average of 87?

A student has gotten the following grades on his tests. What is the minimum grade he must get on the last test in order to have an average of 87?
78​, 93​, 87​, 89