Farrar takes fourth at state