Some extremal problems in geometry