hello can you please help me solve these problem I need a refresher

The first one the p=30 ft and a=15 ft and the second one is p=26 km and a= 36 km