$\therefore \cos \alpha=\frac{3}{5} \text { and } \cos \beta=\frac{4}{5}$
$\therefore \sin \alpha=\sqrt{1-\cos ^2 \alpha}=\sqrt{1-\frac{9}{25}}=\frac{4}{5}$
$\text { and } \sin \beta=\sqrt{1-\cos ^2 \beta}=\sqrt{1-\frac{16}{25}}=\frac{3}{5}$
Consider $\sin (\alpha+\beta)=\sin \alpha \cos \beta+\cos \alpha \sin \beta$
$=\frac{4}{5} \cdot \frac{4}{5}+\frac{3}{5} \cdot \frac{3}{5}$
$=\frac{16}{25}+\frac{9}{25}=\frac{25}{25}$
$=1$
$\therefore \alpha+\beta=\sin ^{-1}(1)$
$\text { i.e. } \cos ^{-1} \frac{3}{5}+\cos ^{-1} \frac{4}{5}=\frac{\pi}{2}$