Time Value of Money Quant

how to solve 22 and 23?
image