Friedman Equation In Codimension-Two Braneworlds