So, they first impose the 15 yard unsportsmanlike conduct penalty on Houston for the head butt. Then, they impose the 15 yard personal foul penalty on BYU, which comes with an automatic first down. So the line of scrimmage moves back 15 yards, then forward 15 yards, and the down is reset to 1st.
They did it correctly given the calls that were made.