Create a function based on the input and output. Look at the examples, there is a pattern.
secret(24) ➞ 8 secret(42) ➞ 8 secret(15) ➞ -4 secret(52) ➞ 15
$num >= 10 and $num <= 52
$num