p varies inversely as q. If p = 10 when q = 4, find the value of q when p = 12.