There exist integers m and n such that a = 7m + p and b = 6n + q such that
0<p<7⇒
Maximum value of p will be 6.
0<q<6⇒
Maximum value of p will be 5.
Therefore, the maximum value of p + q will be 11.