William walked around 2 rectangular parks. One measures 33.4 meters by 36.2 meters and the other measures 51.4 meters by 22.7 meters. How far did he walk?