The diagram above illustrates two boxes P and Q of masses 27.3 kg and 6.2 kg…