Answer:
Muslim mathematicians determined the times to call Muslims to prayer to fulfill part of the second pillar. To completely fulfill the second and fifth pillars, mapmakers and astronomers pinpointed the direction, distance, and location of Mecca for pilgrimages.
Hope it helped! :)