consider the statements: P = All students offering Literature(L) also offer History(H); Q = Students offering…