Given that, y varies directly as x.
i.e… y∝x⇒y=kx …(i) [where, k = arbitrary constant]
Given, y = 12 and x = 4 (substituting these values in Eq(i))
12 = 4k
⇒k=124
∴ k = 3.
On Putting the value of k in eq.(i) we get
y = 3x …(ii)
When x = 5, from Eq. (ii), we get,
y = 3 × 5 ⇒ y = 15
Hence, the value of y is 15.