the graph of y=p cos for 0 is less or equal to x less or equal to 360, given that p is greater than 0 and 0 is less than q less than 360, find the value of p and q