5.7 hemi rough idle and low backfire out exhaust any ideas

one thing i forgot to mention is when it was idling rough and backfireing i notice both exhausts were puffing out white smoke i had never seen that before