If Nina is N years old now and Maryna is M years old now, write…

Four years ago, Nina was three times as old as Maryna was.