Marginal Physical Product (MPP) of a factory

Marginal Physical Product (MPP) of a factory is 20, 25,18,0 and- 10 and its levels of variable factor are 1,2, 3, 4 and 5, respectively. Calculate its TPP and APP.