Are you riding on pavement or trails? Mountainbike tires are generally a lot slower on tarmac, due to the tire pattern, and width, compared to a road tire. Also on tarmac you should increase the pressure in your tire quite a bit.
Don't listen to which speeds people tell you to aim for. Look for improvements in your own rides.
Road surface, hills, wind, tires, style of bike, your height, position on the bike, traffic and many more things have an impact on your speed. Compare yourself with yourself