On Sunday, Xiaofang and his parents went to the children's park and left home at 8 o'clock in the morning. Before going out, Xiao Fang looked at the wall clock on the wall. The hour and minute hands on the clock happened to coincide. After two o'clock in the afternoon, they returned home. As soon as they entered the house, Xiao Fang looked at the wall clock again. In the opposite direction, exactly a straight line. How many hours did Xiaofang go out with his parents?
星期日，小方和爸爸妈妈去儿童公园，上午8点多从家出发．临出门，小方看了墙上的挂钟，钟上的时针和分针恰巧是重合的，下午两点多，他们回到家，一进家门，小方又看了看挂钟，这时钟的时针与分针方向相反，正好成一条直线．小方和爸爸妈妈共出去多少小时．
<result>6</result>