Logic question shapes and calculation

thanks for the solution but is it possible if you could give more detailed info about the solution because I still couldn’t process how we should solve it
thankss