How do I record a loan payment which includes paying both interest and principal?

Hi I found this helpful in 2014