If the mean of the following frequency distibution is 24, find the value of p. Class0−1010−2020−3030−4040−50Frequency34p32