You need to select the appropriate formulas and substitute the variables in the formulas for values you are given, then rearrange and solve using simultaneous equations.

For example,

Then you can go back and get min,

You can use the same method of rearranging equations and substituting with simultaneous equations with the other formulas for your other problem.