.
The formula for the 12-hours cycle is
y = ,
where x is the measure of the time in hours, starting from x= 0 at midnight and till x= 12 hours (the noon),
which is about one full tide cycle.
Check. At x = 0 hours (midnight) y = = -3.5*1 + 4.5 = - 3.5 + 4.5 = 1 meter (lowest tide level);
at x= 3 hours y = = = = = 4.5 meters;
at x = 6 hours y = = = = = 8 meters (highest tide level);
at x = 9 hours y = = = = 4.5 meters;
at x = 12 hours (at noon) y = = = -3.5*1+ 4.5) = -3.5 + 4.5 = 1 meter (lowest tide level, again).
The period (one full cycle) is equal to 12 hours: = , as it should be.
You can use the same formula for the two consecutive full tide cycles (of the total 24 hours duration), too.
--------------
To get familiar with the subject, read this Internet article
https://oceanservice.noaa.gov/education/tutorial_tides/tides05_lunarday.html
Because the Earth rotates through two tidal “bulges” every lunar day, coastal areas experience two high and two low tides
every 24 hours and 50 minutes. High tides occur 12 hours and 25 minutes apart. It takes six hours and 12.5 minutes
for the water at the shore to go from high to low, or from low to high.