We have developed three lessons supported by the principles of inquiry-based learning (IBL) and problem-based learning (PBL) in educational robotics with the aim of steering and emphasising the mathematics aspects of the curriculum and the role of mathematics in STEM, while also touching on the social context and impact of STEM. Our goal is to inspire and prompt the curiosity in the participants to seek further understanding in mathematics, to develop mathematical thinking and problem-solving skills, and to see applicability in the emerging world where artificial intelligence and automation are transforming the skills learners will use as professionals. Moreover, we have delivered our ideas to educators in high-school who indicated they would incorporate our challenges and tools to cross-pollinate different areas of STEM.