Answer
See answers.
Work Step by Step
The Q-value is the mass energy of the reactants on the left side, minus the mass energy of the products on the right side.
The first reaction is $p+p\rightarrow p+p+\pi^0$.
$$Q=2m_pc^2-(2m_pc^2+m_{\pi^0}c^2)=- m_{\pi^0}c^2=-135.0MeV$$
The second reaction is $p+p\rightarrow p+n+\pi^+$.
$$Q=2m_pc^2-(m_pc^2+m_nc^2+m_{\pi^+}c^2)= m_pc^2-m_nc^2-m_{\pi^+}c^2$$
$$938.3MeV-939.6MeV-139.6MeV=-140.9MeV$$