This latex code spans across two pages but I want to have it on one page.
\documentclass[a4paper]{scrbook}
\usepackage[right = 12mm, left=12mm, top=0.5in, bottom=5in]{geometry}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[section]{placeins}
\begin{document}
\begin{equation}
y = ac + b
\end{equation}
\begin{equation}
y = mc + c
\end{equation}
\section{text}
\begin{figure}[h]
\centering
\includegraphics[width=10cm,height=5cm]{ONE.jpg}
\caption{}
\end{figure}
\section{text}
\begin{figure}[h]
\centering
\includegraphics[width=10cm,height=5cm]{TWO.jpg}
\caption{}
\end{figure}
\end{document}


\textfraction), see floats - How to put two figures in the same page? - TeX - LaTeX Stack Exchange – user202729 Dec 26 '21 at 03:09