Recessed lighting question

Also floor joists are going to run parallel to the rafters 99% of the time.