If it is textual comparison then it should be easy.
You can use GetROProperty function on both the screens and the compare and report to results using Reporter.ReportEvent method. But if you are talking about a visual comparison then it would not be easy to do in QTP.
Simply store the values of those Respective objects in to different variables
using the following approach
Page2 = B(2).P(2).Object.GetRoProperty("Value")
if Page1=Page2 then