what is the formula of 6p-q=10